package com.openapi.openapi.vo;

/**
 * Created by 高立新(gaolixin622@126.com) on 2017-11-12.
 */
public class ResData<T> {
    private int errorCode;
    private String errorMsg = "";
    private String apiRequireTime;
    private String apiResponseTime;
    private String apiProcessTime;
    private String apiMachine;

    private T data;

    public ResData(int errorCode, String errorMsg, T data) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
        this.data = data;
    }

    public ResData(T data) {
        this.data = data;
    }

    public ResData() {
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getApiRequireTime() {
        return apiRequireTime;
    }

    public void setApiRequireTime(String apiRequireTime) {
        this.apiRequireTime = apiRequireTime;
    }

    public String getApiResponseTime() {
        return apiResponseTime;
    }

    public void setApiResponseTime(String apiResponseTime) {
        this.apiResponseTime = apiResponseTime;
    }

    public String getApiProcessTime() {
        return apiProcessTime;
    }

    public void setApiProcessTime(String apiProcessTime) {
        this.apiProcessTime = apiProcessTime;
    }

    public String getApiMachine() {
        return apiMachine;
    }

    public void setApiMachine(String apiMachine) {
        this.apiMachine = apiMachine;
    }
}
